package org.jash.exam



import com.example.lib_base.mvvm.Res
import okhttp3.RequestBody
import org.jash.exam.entity.ExamEntity
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.PUT
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService {
    @POST("/api/attendances")
    suspend fun checkIn(@Body body: RequestBody): Res<ExamEntity>
    @GET("/api/attendances/user/{userId}")
    suspend fun getExamList(@Path("userId") userId: Int): Res<MutableList<ExamEntity>>

}